//package com.scgk.sync.job;
//
//import cn.hutool.core.collection.CollectionUtil;
//import cn.hutool.core.date.DateUtil;
//import cn.hutool.core.util.IdUtil;
//import com.scgk.sync.common.BaseResponse;
//import com.scgk.sync.doamin.MJTD;
//import com.scgk.sync.doamin.User;
//import com.scgk.sync.mapper.MjtdMapper;
//import com.scgk.sync.mapper.UserMapper;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//import org.springframework.util.CollectionUtils;
//
//import java.text.SimpleDateFormat;
//import java.util.Date;
//import java.util.List;
//
//@Component
//@EnableScheduling
//@Slf4j
//public class TestJob {
//
//    private static final SimpleDateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");
//
//    @Autowired
//    private UserMapper userMapper;
//    @Autowired
//    private MjtdMapper mjtdMapper;
//
//
//    //@Scheduled(fixedRate = 10000) //通过@Scheduled声明该方法是计划任务，使用fixedRate属性每隔固定时间执行
//    //public BaseResponse pbdyhToDay() {
//    //    log.info("每隔10秒执行一次 "+dateFormat.format(new Date()));
//    //    List<MJTD> mjtds = mjtdMapper.selectList(null);
//    //    if(CollectionUtil.isNotEmpty(mjtds)){
//    //        mjtds.stream().forEach(item ->{
//    //            log.info("查询的数据：{}",item);
//    //        });
//    //    }
//    //    return BaseResponse.ok();
//    //}
//
//}
